/*
 * Copyright (C) Weguide
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package humrum.weguide.views;

import humrum.weguide.R;
import android.location.Location;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

public class ViewMap extends MapActivity {

	private Location location;
	private MapView map;
	private MapController controller;
	
	@Override
	public void onCreate(Bundle icicle){
		super.onCreate(icicle);
		// Fullscreen
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		initMap();
	}
	
	private void initMap(){
		setContentView(R.layout.mapview);
		
		map = (MapView) findViewById(R.id.mapview);
		controller = map.getController();
		map.setSatellite(false);
		map.setBuiltInZoomControls(true);		
	}
	
	@Override
	protected boolean isRouteDisplayed() {
		return false;
	}
	
}
